﻿using System;
using System.Diagnostics;
using System.Windows;
using System.Windows.Input;
using System.Windows.Media;
using OpenLS.Drawing;

namespace OpenLS.Spreadsheet.UI.Internals
{
    class FormulaCellTextBox: CellTextBox
    {
        public FormulaCellTextBox()
        {
         }

        protected override void OnGotFocus(RoutedEventArgs routedEventArgs)
        {
            InvalidateVisual();
        }
            protected override void OnLostFocus(RoutedEventArgs e)
        {
            InvalidateVisual();
        }
        protected override CellTextSource CreateTextSource(EditedCell newValue, ColorScheme colorScheme, FontFamily fontFamily, double fontSize)
        {
            return new InFormulaTextSource(newValue, colorScheme, fontFamily, fontSize);
        }
    }
}